package java期末作业;

public class SumTest {
    public static void main(String[] args) {
        int s = 0;
        for (int b = 1; b <= 100;b++){
            if (b % 2 != 0){
                s += b;
            }
        }
        System.out.println("1到100之间所有奇数的和为："+ s);
    }
}
